<%--
  Created by IntelliJ IDEA.
  User: 王文尧
  Date: 2024/7/10
  Time: 16:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <c:set var="username" value="测试" scope="request"></c:set>
    <%-- c:if 只是 单分支 --%>
    <c:if test="${not empty username}">
        ${username}
        <script type="text/javascript">
            alert("${username}");
        </script>
    </c:if>
</body>
</html>
